package com.shigen.demo.pattern.factory;

/**
 * @author shigenfu
 * @date 2023/10/7 1:00 下午
 */
public class MainMethod {

    public static void main(String[] args) {
        Product a = Factory.createProduct("A");
        assert a != null;
        a.show();
        System.out.println("=========");
        Product b = Factory.createProduct("B");
        assert b != null;
        b.show();
    }

}
